package com.zp.drug.service;


import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;
import com.zp.drug.api.bo.StorageVsDeptBo;
import com.zp.drug.api.vo.StorageVsDeptVo;

import java.util.Collection;
import java.util.List;

/**
 * 库房单位与科室对照Service接口
 *
 * @author zhang peng
 * @ date 2023-06-18
 */
public interface IStorageVsDeptService {

    /**
     * 查询库房单位与科室对照
     */
    StorageVsDeptVo queryById (String id);

    /**
     * 查询库房单位与科室对照列表(分页)
     */
    TableDataInfo<StorageVsDeptVo> queryPageList (StorageVsDeptBo bo, PageQuery pageQuery);

    /**
     * 查询库房单位与科室对照列表(不分页)
     */
    List<StorageVsDeptVo> queryList (StorageVsDeptBo bo);

    /**
     * 修改库房单位与科室对照
     */
    Boolean insertByBo (StorageVsDeptBo bo);

    /**
     * 修改库房单位与科室对照
     */
    Boolean updateByBo (StorageVsDeptBo bo);

    /**
     * 校验并批量删除库房单位与科室对照信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);
}
